<?php
mysql_connect ('192.168.11.10', 'root', 'Gl-1114' );
mysql_select_db('crystal_monitoring');

$id = $_GET['id'];

$res = mysql_query("SELECT image FROM `monitoring_screenshots` WHERE `monitoring_screenshots`.mac = 'D850E6B83242'");

while ($row = mysql_fetch_assoc($res)) {
    
    $image = $row['image'];
    
}

header('Content-type: image/jpg');
echo $image;
